package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line="...123z.....xc456vb.....n789asd...";
        String[]data=line.split("[a-z]+");
        for (int i=0;i< data.length;i++){
            System.out.println(data[i]);
        }
        line="...123...123....";
        data=line.split("\\.");
        System.out.println(Arrays.toString(data));
    }
}
